/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import javafx.scene.control.Button;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;

/**
 *
 * @author Hans
 */
public class MyButton extends Button {

    public MyButton(String text) {
        super(text);
        setTextFill(Color.WHITE);
        setStyle("-fx-background-color: transparent;"
                + "-fx-font-weight: bold;"
                + "-fx-font-size: 15px;");

        setOnMouseEntered(event -> {
            setTextFill(Paint.valueOf("#c6e68f"));
            //"#c6e68f"
        });
        setOnMouseExited(event -> {
            setTextFill(Color.WHITE);
        });
    }

}
